package org.apache.rocketmq.console.script.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "r_script_info", uniqueConstraints = {
		@UniqueConstraint(columnNames = { "regionCode", "enviroCode", "topicName" }) })
public class ScriptInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4625393591584364877L;

	// 主键
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int id;

	// 版本号
	public String versionCode;
	// 环境id
	public int envId;
	// 域的英文简码
	public String regionCode;
	// 域的中文名称
	@Transient
	public String regionName;
	// 环境编码
	public String enviroCode;
	// 环境中文名称
	@Transient
	public String enviroName;
	// rmq集群名称
	public String rmqcluster;
	// nameserve
	@Transient
	public String nameserver;
	// topic
	public String topicName;
	// 发送端group
	public String produceGroup;
	// 消费者group
	public String consumerGroup;

	// 服务提供方名称
	public String servOfferName;
	// 服务调用方名称
	public String servUserName;
	// 服务简码
	public String servCode;
	// 服务中文名称
	public String servName;

	public String reqOrRes;
	/*
	 * // 操作人 public String createUser;
	 */
	@Transient
	public String existOfferSysCode;

	// 创建时间
	public Long createDate;

	// 修改时间
	public Long updateDate;

	public int isDistribute;
	/*
	 * // 修改人 public String modifyUser;
	 */
	// 状态
	public String state;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getIsDistribute() {
		return isDistribute;
	}

	public void setIsDistribute(int isDistribute) {
		this.isDistribute = isDistribute;
	}

	public String getVersionCode() {
		return versionCode;
	}

	public void setVersionCode(String versionCode) {
		this.versionCode = versionCode;
	}

	public String getServOfferName() {
		return servOfferName;
	}

	public void setServOfferName(String servOfferName) {
		this.servOfferName = servOfferName;
	}

	public String getServUserName() {
		return servUserName;
	}

	public void setServUserName(String servUserName) {
		this.servUserName = servUserName;
	}

	public String getServCode() {
		return servCode;
	}

	public void setServCode(String servCode) {
		this.servCode = servCode;
	}

	public String getServName() {
		return servName;
	}

	public void setServName(String servName) {
		this.servName = servName;
	}

	public String getTopicName() {
		return topicName;
	}

	public void setTopicName(String topicName) {
		this.topicName = topicName;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}

	public Long getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Long updateDate) {
		this.updateDate = updateDate;
	}

	public String getProduceGroup() {
		return produceGroup;
	}

	public void setProduceGroup(String produceGroup) {
		this.produceGroup = produceGroup;
	}

	public String getConsumerGroup() {
		return consumerGroup;
	}

	public void setConsumerGroup(String consumerGroup) {
		this.consumerGroup = consumerGroup;
	}

	public int getEnvId() {
		return envId;
	}

	public void setEnvId(int envId) {
		this.envId = envId;
	}

	public String getEnviroCode() {
		return enviroCode;
	}

	public void setEnviroCode(String enviroCode) {
		this.enviroCode = enviroCode;
	}

	public String getRmqcluster() {
		return rmqcluster;
	}

	public void setRmqcluster(String rmqcluster) {
		this.rmqcluster = rmqcluster;
	}

	public String getNameserver() {
		return nameserver;
	}

	public void setNameserver(String nameserver) {
		this.nameserver = nameserver;
	}

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getRegionName() {
		return regionName;
	}

	public void setRegionName(String regionName) {
		this.regionName = regionName;
	}

	public String getEnviroName() {
		return enviroName;
	}

	public void setEnviroName(String enviroName) {
		this.enviroName = enviroName;
	}

	public String getReqOrRes() {
		return reqOrRes;
	}

	public void setReqOrRes(String reqOrRes) {
		this.reqOrRes = reqOrRes;
	}

	public String getExistOfferSysCode() {
		return existOfferSysCode;
	}

	public void setExistOfferSysCode(String existOfferSysCode) {
		this.existOfferSysCode = existOfferSysCode;
	}

}
